import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import user from './modules/user'
// import product from './modules/product'
// import cart from './modules/cart'
// import order from './modules/order'
//创建一个仓库保存方法和数据
const modules = {
	user
	// product,
	// cart,
	// order
}
const store = new Vuex.Store({
	modules,
	state: {
		home_recommend_products: [],  //分类
		opts: 2,
		areas: null
	},
	mutations: {},
	actions: {}
})
//暴露store 对象
export default store
